[refactor] 유저 정보 조회 필드 null 가능하도록 수정 + 유저 닉네임 중복 확인 API 관련 리팩토링 #100
Conversation
WalkthroughJWT 토큰 생성 시 userType이 null일 경우를 고려하여 null 체크가 추가되었습니다. User 엔티티의 userType 컬럼이 nullable로 변경되고, createUser 메서드에서 userType 기본값 할당이 제거되었습니다. UserInfoService의 사용자 정보 조회 시 필드 null 검증 로직이 삭제되었습니다. 일부 import 정리도 함께 이루어졌습니다. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant AuthService
participant User
participant TokenProvider
Client->>AuthService: 로그인/토큰 재발급 요청
AuthService->>User: 사용자 조회
User-->>AuthService: User 객체 반환 (userType nullable)
AuthService->>TokenProvider: generateToken(userId, userType?.name())
TokenProvider-->>AuthService: JWT 토큰 반환
AuthService-->>Client: 토큰 응답
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (8)
💤 Files with no reviewable changes (3)
🧰 Additional context used🧠 Learnings (1)📚 Learning: java에서 같은 패키지 내의 클래스들은 import 구문 없이 서로를 참조할 수 있다. com.wayble.server.user.entity 패키지 내의 클래스들은 명시적인 im...Applied to files:
🔇 Additional comments (7)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✔️ 연관 이슈
📝 작업 내용
스크린샷 (선택)
Summary by CodeRabbit
버그 수정
리팩터